﻿@model List<SnongPhoneShop.Models.SanPham>
@{
    ViewBag.Title = "Báo giá điện thoại";
    Layout = "~/Views/Shared/_LayoutMetroUI.cshtml";
    ViewBag.CurrPage = "Báo giá";
}

<div class="table-price-report">
    <table border="1" id="table-product-report">
        <tr>
            <th>Tên sản phẩm</th>
            @foreach (var Item in Model) { 
                <th class="name-table-product-report"><a href="@Url.Action("CT_SanPham", "San_Pham", new { ID = Item.MaSanPham.Trim() })">@Item.TenSanPham</a></th>
            }
        </tr>
        <tr>
            <th class="img-table-product-report">Ảnh</th>
            @foreach (var Item in Model) { 
                <td class="img-table-product-report"><a href="@Url.Action("CT_SanPham", "San_Pham", new { ID = Item.MaSanPham.Trim() })"><img src="@Item.AnhDaiDien" /></a></td>
            }
        </tr>
        <tr>
            <th>Giá bán (VNĐ)</th>
            @foreach (var Item in Model) { 
                <td class="price-table-product-report">@Item.DonGia.ToString("n0")</td>
            }
        </tr>
        <tr>
            <th>Hãng sản xuất</th>
            @foreach (var Item in Model) { 
                <td><a href="@Url.Action("DM_SanPham", "San_Pham", new { ID = Item.MaDanhMuc })">@Item.DanhMucSanPham.TenDanhMuc</a></td>
            }
        </tr>
        <tr>
            <th>Màu sắc</th>
            @foreach (var Item in Model) { 
                <td>@Item.MauSac</td>
            }
        </tr>
        <tr>
            <th>Bảo hành</th>
            @foreach (var Item in Model) { 
                <td>@Item.BaoHanh</td>
            }
        </tr>  
    </table>
</div>